package cn.supermaster.management.schedule.task;

import cn.supermaster.management.common.utils.TextUtils;
import org.springframework.stereotype.Component;

/**
 * All rights Reserved, Designed By www.super-bytecode.com
 *
 * @ProjectName: supermaster-management
 * @Package: cn.supermaster.management.task.task
 * @ClassName: ManagementEmailTask
 * @Description: [定时任务调度测试]
 * <p> </p>
 * @Author: [Lance Ting]
 * @Date: 2021/1/28 13:12
 * @Version: V1.0
 * @Copyright: 2021 www.super-bytecode.com Inc. All rights reserved.
 * TODO: 注意,本文件Lance Ting所作,如果转载或使用请标明具体出处!
 **/
@Component("task")
public class ManagementTestTask {
    /**
     * @Description: [多参数测试]
     * <p></P>
     * @Title: multipleParamsProc
     * @Author: Lance Ting
     * @Date: 2021-01-28
     * @Param: text
     * @Param: _boolean
     * @Param: _long
     * @Param: _double
     * @Param: _int
     * @Return: void
     */
    public void multipleParamsProc(String text, Boolean _boolean, Long _long, Double _double, Integer _int) {
        String format = "Test-执行多参方法： 字符串类型{}，布尔类型{}，长整型{}，浮点型{}，整形{} ...";
        System.out.println(TextUtils.format(format, text, _long, _boolean, _double, _int));
    }

    /**
     * @Description: [有参测试]
     * <p></P>
     * @Title: paramsProc
     * @Author: Lance Ting
     * @Date: 2021-01-28
     * @Param: params
     * @Return: void
     */
    public void paramsProc(String params) {
        System.out.println("Test-执行有参方法：" + params);
    }

    /**
     * @Description: [无参测试]
     * <p></P>
     * @Title: noParamsProc
     * @Author: Lance Ting
     * @Date: 2021-01-28
     * @Return: void
     */
    public void noParamsProc() {
        System.out.println("Test-执行无参方法...");
    }
}
